﻿using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;

namespace Hont.HyperWigglePackage.Editor
{
    public partial class HyperWiggleEditorView
    {
        const float SMALL_SPACING = 3;
        const float MID_SPACING = 5;
        const float LARGE_SPACING = 7;

        EditorWindow mWindow;


        public void Init(EditorWindow window)
        {
            mWindow = window;

            mWindow.minSize = new Vector2(350, 320);
            mWindow.maxSize = window.minSize;
            mWindow.titleContent = new GUIContent("Hyper Wiggle");

            InitPreviewPartial();
            InitTimelinePartial();
            InitCommonPartial();
        }

        public void Refresh()
        {
            RefreshEvent();

            RefreshPreview();
            RefreshTimeline();
            RefreshCommon();

            LaterRefreshEvent();
        }

        public void Dispose()
        {
        }
    }
}
